<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>考试第八题</title>
</head>

<body>
</body>
<script>
    /* 
        数组1[1,2,3,4,5]与数组2[6,7,8,9]进行合并，得出数组[1,2,3,4,5,6,7,8,9]
     */
    let arr1 = [1, 2, 3, 4, 5];
    let arr2 = [6, 7, 8, 9];
    let array = '';
    array = arr1.concat(arr2);
    document.write('数组1和数组2合并之后是：' + array);
</script>

</html>